package org.zjx.core;

import org.zjx.message.CommandMessage;
import org.zjx.message.ResponseMessage;

import java.io.IOException;
import java.net.InetSocketAddress;

/**
 * 远程命令调用器接口
 */
public interface RemoteCommandInvoker {
    /**
     * 远程调用命令
     * @param command 命令消息
     * @param target 目标服务器地址
     * @return 响应消息
     */
    ResponseMessage invokeRemote(CommandMessage command, InetSocketAddress target);
}